package com.tencreat.service.account;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.account.AccountWithdrawAudit;
import com.tencreat.domain.account.dto.AdminAuditResultDTO;
import com.tencreat.domain.mall.vo.AuditResultVO;
import com.tencreat.domain.mall.vo.RrsAuditResultVO;

import java.util.List;

/**
 * 提现记录Service接口
 *
 * @author tencreat
 * @date 2021-11-25
 */
public interface IAccountWithdrawAuditService extends IService<AccountWithdrawAudit> {
    /**
     * 查询提现记录
     *
     * @param id 提现记录ID
     * @return 提现记录
     */
    public AccountWithdrawAudit selectAccountWithdrawAuditById(ReqIdParam id);

    /**
     * 查询提现记录列表
     *
     * @param accountWithdrawAudit 提现记录
     * @return 提现记录集合
     */
    public List<AccountWithdrawAudit> selectAccountWithdrawAuditList(AccountWithdrawAudit accountWithdrawAudit);

    /**
     * 新增提现记录
     *
     * @param accountWithdrawAudit 提现记录
     * @return 结果
     */
    public int insertAccountWithdrawAudit(AccountWithdrawAudit accountWithdrawAudit);

    /**
     * 修改提现记录
     *
     * @param accountWithdrawAudit 提现记录
     * @return 结果
     */
    public int updateAccountWithdrawAudit(AccountWithdrawAudit accountWithdrawAudit);

    /**
     * 批量删除提现记录
     *
     * @param ids 需要删除的提现记录ID
     * @return 结果
     */
    public int deleteAccountWithdrawAuditByIds(ReqIdsParam ids);

    /**
     * 删除提现记录信息
     *
     * @param id 提现记录ID
     * @return 结果
     */
    public int deleteAccountWithdrawAuditById(ReqIdParam id);

    void auditResult(AdminAuditResultDTO param);

    IPage<AccountWithdrawAudit> list(AccountWithdrawAudit accountWithdrawAudit);

    RrsAuditResultVO priceStatistics();

    AuditResultVO priceStatisticsV2();

}
